package com.ruoyi.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.course.mapper.CourseWaitSelectionMapper;
import com.ruoyi.course.domain.CourseWaitSelection;
import com.ruoyi.course.service.ICourseWaitSelectionService;

/**
 * 待选课程管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-19
 */
@Service
public class CourseWaitSelectionServiceImpl implements ICourseWaitSelectionService 
{
    @Autowired
    private CourseWaitSelectionMapper courseWaitSelectionMapper;

    /**
     * 查询待选课程管理
     * 
     * @param selectId 待选课程管理主键
     * @return 待选课程管理
     */
    @Override
    public CourseWaitSelection selectCourseWaitSelectionBySelectId(Long selectId)
    {
        return courseWaitSelectionMapper.selectCourseWaitSelectionBySelectId(selectId);
    }

    /**
     * 查询待选课程管理列表
     * 
     * @param courseWaitSelection 待选课程管理
     * @return 待选课程管理
     */
    @Override
    public List<CourseWaitSelection> selectCourseWaitSelectionList(CourseWaitSelection courseWaitSelection)
    {
        return courseWaitSelectionMapper.selectCourseWaitSelectionList(courseWaitSelection);
    }

    /**
     * 新增待选课程管理
     * 
     * @param courseWaitSelection 待选课程管理
     * @return 结果
     */
    @Override
    public int insertCourseWaitSelection(CourseWaitSelection courseWaitSelection)
    {
        return courseWaitSelectionMapper.insertCourseWaitSelection(courseWaitSelection);
    }

    /**
     * 修改待选课程管理
     * 
     * @param courseWaitSelection 待选课程管理
     * @return 结果
     */
    @Override
    public int updateCourseWaitSelection(CourseWaitSelection courseWaitSelection)
    {
        return courseWaitSelectionMapper.updateCourseWaitSelection(courseWaitSelection);
    }

    /**
     * 批量删除待选课程管理
     * 
     * @param selectIds 需要删除的待选课程管理主键
     * @return 结果
     */
    @Override
    public int deleteCourseWaitSelectionBySelectIds(Long[] selectIds)
    {
        return courseWaitSelectionMapper.deleteCourseWaitSelectionBySelectIds(selectIds);
    }

    /**
     * 删除待选课程管理信息
     * 
     * @param selectId 待选课程管理主键
     * @return 结果
     */
    @Override
    public int deleteCourseWaitSelectionBySelectId(Long selectId)
    {
        return courseWaitSelectionMapper.deleteCourseWaitSelectionBySelectId(selectId);
    }
}
